package com.dcy.znoa.common.enums;

public enum ResultCode {

//    SUCCESS("10001000", "请求成功"),
    SUCCESS("200", "请求成功"),
    SERVICE_ERROR("10001001", "服务繁忙，请稍后重试"),
    SESSION_EXPIRED("10001002", "你已经下线，请重新登录"),
    SESSION_INVALIED_TOKEN("10001003", "你尚未登录，请登录后使用"),
    NOT_FOUND("404","找不到"),
    MISS_PARAM("01","缺少入参"),




    ;


    // 业务码
    private String code;
    // 描述
    private String message;

    ResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String code() {
        return this.code;
    }

    public String message() {
        return this.message;
    }

    // message允许编辑
    public ResultCode setMessage(String message) {
        this.message = message;
        return this;
    }

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
